package com.tarena.lbs.business.controller;

import com.tarena.lbs.business.pojo.vo.BusinessCategoryVO;
import com.tarena.lbs.business.servcie.BusinessCategoryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@Tag(name = "商家分类接口")
public class BusinessCategoryController {
@Autowired
BusinessCategoryService businessCategoryService;
@Operation(summary = "查询所有商家分类")
@GetMapping("/admin/basic/business/category/list")
 public List<BusinessCategoryVO> listAllCategories()
 {
 return businessCategoryService.listAllCategories();
 }
}


